package org.jsrml.core.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.jsrml.common.persistence.StringIdBaseEntity;

/**
 * 国家
 */
@Entity
@Table(name = M.TABLE_PREFIX + "COUNTRY")
public class Country extends StringIdBaseEntity {
	private static final long serialVersionUID = 1L;

	@Column(name = "NAME", length = 200)
	private String name;
	@Column(name = "CODE", length = 11)
	private String code;
	@Column(name = "ALPHA1")
	private String alpha1;
	@Column(name = "ALPHA2")
	private String alpha2;
	@Column(name = "EN_NAME", length = 200)
	private String enName;
	@Column(name = "CN_NAME", length = 200)
	private String twName;
	@Column(name = "HK_NAME", length = 200)
	private String hkName;
	@Column(name = "SORT", length = 6)
	private Integer sort;

	public Country() {
	}

	public Country(String code, String name) {
		this.name = name;
		this.code = code;
	}

	public String getAlpha1() {
		return alpha1;
	}

	public void setAlpha1(String alpha1) {
		this.alpha1 = alpha1;
	}

	public String getAlpha2() {
		return alpha2;
	}

	public void setAlpha2(String alpha2) {
		this.alpha2 = alpha2;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	public String getTwName() {
		return twName;
	}

	public void setTwName(String twName) {
		this.twName = twName;
	}

	public String getHkName() {
		return hkName;
	}

	public void setHkName(String hkName) {
		this.hkName = hkName;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
